package com.hjj.test.controller;

import com.hjj.test.service.user.service.IUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>描述：测试controller</p>
 *
 * @author:hejiajun
 * @date:2024/12/2100:12
 **/
@RestController
@RequestMapping("/user")
@Tag(name = "用户类接口")
public class UserController {

    @Resource
    private IUserService userService;

    @GetMapping("/getUserList")
    @Operation(summary = "用户列表数据")
    public String hello() {
        return userService.findUserList();
    }
}
